﻿using Data.Helpers;
using Data.Objects.Player;

namespace Data.PlayerData
{
    class PlayerXmlHelper
    {
        public static string GetPlayerXML(IPlayerCharacter pc)
        {
            return XmlHelper.XmlSerializeToString(pc);
        }

        public static IPlayerCharacter getPlayerFromXml(string xml)
        {
            return XmlHelper.DeserializeFromString<IPlayerCharacter>(xml);
        }
    }
}
